#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import hashlib
import sys

if __name__ == '__main__':
    data = []
    infile = sys.argv[1]
    with open(infile, 'r') as f:
         # 去取换行符
        data = f.read().splitlines()

    for line in data:
        hl = hashlib.md5()
        mac = line.replace(':', '')
        hl.update(mac.encode('utf-8'))
        print hl.hexdigest()

